#include"stdio.h"
main()
{
	int num;
    void reverse(int num);
	printf("Enter num:");
	scanf("%d",&num);
	reverse(num);
	return 0;
}
void reverse(int num)
{
	if(num<=9)
		printf("%d",num);
	else
	{
		printf("%d",num%10);
		reverse(num/10);
	}
	printf("\n");
}